#
# Makefile for PSP Witchaven
# Commented below is the original makefile for Watcom
#
#build.exe : build.obj engine.obj a.obj bstub.obj cache1d.obj
#	wlink f build f engine f a f bstub f cache1d
#
#bstub.obj : bstub.c
#	wcc386 bstub /4r /s /or

# Makefile.in for Witchaven 
 
TARGET = Witchaven
OBJS = BSTUB.o


INCDIR = /usr/local/pspdev/psp/include/libtimidity /home/Administrator/psp-witchaven/SRC/
CFLAGS = -O2 -G0 -Wall -DPSP
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
USE_PSPSDK_LIBC = 1

LIBDIR = 
LDFLAGS =
LIBS = -lpspgu -lpspaudiolib -lpspaudio -lpsppower -ltimidity -lm -lc

#PSPBIN = $(PSPSDK)/../bin
#CFLAGS += `$(PSPBIN)/sdl-config --cflags`
#LIBS += `$(PSPBIN)/sdl-config --libs`

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Witchaven PSP 0.01a
PSP_EBOOT_ICON = ICON0.PNG

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak


